﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GTA.DC.Common.UC
{
    public class SystemCache
    {
        /// <summary>
        /// 录入系统ID
        /// </summary>
        public static string InputSystemID;
        /// <summary>
        /// 用户系统ID
        /// </summary>
        public static string UMSystemID;
        /// <summary>
        /// 元数据管理系统ID
        /// </summary>
        public static string METASystemID;
        /// <summary>
        /// ETL系统Id
        /// </summary>
        public static string ETLSystemID;
        /// <summary>
        /// 调度系统Id
        /// </summary>
        public static string SchedulerSystemID;
        /// <summary>
        /// 质检系统Id
        /// </summary>
        public static string QASystemID;

        /// <summary>
        /// 当前登录用户信息
        /// </summary>
        public static UserInfo CurrentUser;

        /// <summary>
        /// 是否超级管理员
        /// </summary>
        public static bool IsAdministrators;

        /// <summary>
        /// 服务IP
        /// </summary>
        public static string ServerIP;

        /// <summary>
        /// 服务IP端口
        /// </summary>
        public static string Port;

    }

    public class UserInfo
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID
        {
            get;
            set;
        }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName
        {
            get;
            set;
        }
        /// <summary>
        /// 用户账号
        /// </summary>
        public string Account
        {
            get;
            set;
        }
        /// <summary>
        /// 部门ID
        /// </summary>
        public string DepartmentID
        {
            get;
            set;
        }
        /// <summary>
        /// 固定电话
        /// </summary>
        public string Telephone
        {
            get;
            set;
        }
        /// <summary>
        /// 移动电话
        /// </summary>
        public string MobileNumber
        {
            get;
            set;
        }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string Email
        {
            get;
            set;
        }
    }
}
